package org.musync;

import java.io.File;
import java.sql.Connection;

public class DirScanner {

	Connection con;
	DynaFilter dfilter;
	
	public DirScanner(Connection dbcon){
		//get an internal reference to the database connection
		con = dbcon;
		//create a new dynamic filter to handle directory scanning.
		dfilter = new DynaFilter();
		
		//register dynafilter extensions
		
		
	}
	
	public void walk(File dir) throws Exception{
		if(!dir.isDirectory())
			throw new Exception("The file object must represent an existing directory (preferably containing media files)");
		
		//handle residing files first
		
	}
	
	
}
